package com.baijiaoxi.common.model.base.service.extension;

import com.baijiaoxi.common.model.base.model.Overview;
import org.springframework.core.Ordered;

public interface OverviewHandler<E extends Overview> extends Ordered {


    boolean isMatched(String rtype);

    E getOverview(String rtype, String rkey, String extraKey, Long weappId);

    default int getOrder() {
        return Integer.MAX_VALUE;//越小的优先级越高
    }
}

